package com.wx.mall.feign;

import com.wx.mall.feign.hystrix.FeignDemoClientHystrix;
import com.wx.mall.common.vo.user.DemoVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "mall-user", fallback = FeignDemoClientHystrix.class)
public interface FeignDemoClient {

    @GetMapping("/feign/demo/info")
    DemoVo info(@RequestParam("id") int id);
}
